const express = require("express");
const router = express.Router();
const expressJoi = require("@escook/express-joi");
const { updateInfo_schema, updatePwd_schema } = require("../schema/user");
const updateHandler = require("../router_handler/update");

router.post(
  "/updateInfo",
  expressJoi(updateInfo_schema),
  updateHandler.updateInfo
);
router.post(
  "/updatePassword",
  expressJoi(updatePwd_schema),
  updateHandler.updatePwd
);

module.exports = router;
